package org.dromara.answer.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.answer.domain.AiUserExams;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 用户考试记录视图对象 ai_user_exams
 *
 * @author Lion Li
 * @date 2025-04-09
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = AiUserExams.class)
public class AiUserExamsVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 用户考试记录ID，主键
     */
    @ExcelProperty(value = "用户考试记录ID，主键")
    private Long userExamId;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;

    /**
     * 用户昵称
     */
    @ExcelProperty(value = "用户昵称")
    private String nickName;

    /**
     * 考试ID
     */
    @ExcelProperty(value = "考试ID")
    private Long examId;

    /**
     * 考试标题
     */
    @ExcelProperty(value = "考试标题")
    private String examTitle;

    /**
     * 用户开始考试时间
     */
    @ExcelProperty(value = "用户开始考试时间")
    private Date startTime;

    /**
     * 用户提交时间
     */
    @ExcelProperty(value = "用户提交时间")
    private Date submitTime;

    /**
     * 总分
     */
    @ExcelProperty(value = "总分")
    private Long totalScore;

    /**
     * 状态：not_started-未开始, in_progress-进行中, completed-已完成, graded-已评分
     */
    @ExcelProperty(value = "状态")
    private String status;

    /**
     * 用户得分
     */
    @ExcelProperty(value = "用户得分")
    private Integer score;

    /**
     * 题目总数
     */
    @ExcelProperty(value = "题目总数")
    private Integer totalQuestions;

    /**
     * 答对题数
     */
    @ExcelProperty(value = "答对题数")
    private Integer correctCount;

    /**
     * 总用时
     */
    @ExcelProperty(value = "总用时")
    private Integer totalTime;

    /**
     * 最大用时
     */
    @ExcelProperty(value = "最大用时")
    private Integer maxTime;

    /**
     * 及格分数
     */
    @ExcelProperty(value = "及格分数")
    private Integer passScore;

    /**
     * 考试时长（分钟）
     */
    @ExcelProperty(value = "考试时长（分钟）")
    private Integer duration;

    /**
     * 题目列表
     */
    private List<AiQuestionsVo> questions;

}
